import request from '@/utils/request'

// 查询电影和影厅排片列表
export function listHallmovie(query) {
  return request({
    url: '/cinema/cinema/hallmovie/list',
    method: 'get',
    params: query
  })
}

// 查询电影和影厅排片详细
export function getHallmovie(hallMovieId) {
  return request({
    url: '/cinema/cinema/hallmovie/' + hallMovieId,
    method: 'get'
  })
}

// 新增电影和影厅排片
export function addHallmovie(data) {
  return request({
    url: '/cinema/cinema/hallmovie',
    method: 'post',
    data: data
  })
}

// 修改电影和影厅排片
export function updateHallmovie(data) {
  return request({
    url: '/cinema/cinema/hallmovie',
    method: 'put',
    data: data
  })
}

// 删除电影和影厅排片
export function delHallmovie(hallMovieId) {
  return request({
    url: '/cinema/cinema/hallmovie/' + hallMovieId,
    method: 'delete'
  })
}

// 导出电影和影厅排片
export function exportHallmovie(query) {
  return request({
    url: '/cinema/cinema/hallmovie/export',
    method: 'get',
    params: query
  })
}